{{!
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
}}

<div class="process-names">
  {{#each normalizedProcesses key="_id" as |process|}}
    {{component nameComponent
      process=process
      showTooltip="showTooltip"
      hideTooltip="hideTooltip"
      click="click"
    }}
  {{/each}}
  <div class="consolidated-view-label">
    Consolidated
  </div>
</div><div class="process-visuals">
  <div class="zoom-panel">
    {{#each normalizedProcesses key="_id" as |process|}}
      {{component visualComponent
        process=process
        processor=processor
        showTooltip="showTooltip"
        hideTooltip="hideTooltip"
        click="click"
      }}
    {{/each}}

    {{#if consolidate}}
      <div class="consolidated-view">
        {{#each normalizedProcesses key="_id" as |process|}}
          {{em-swimlane-consolidated-process
            focusedProcess=focusedProcess
            process=process
            processor=processor
            showTooltip="showTooltip"
            hideTooltip="hideTooltip"
            click="click"
          }}
        {{/each}}
      </div>
    {{/if}}

    {{em-swimlane-ruler scroll=scroll processor=processor zoom=zoom}}

  </div>
</div>

{{em-tooltip contents=tooltipContents}}